package com.derbysoft.lowcostadapter.dswitch3.service.impl;

import com.derbysoft.lowcostadapter.dswitch3.service.AvailRequestMonitor;
import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicLong;

/**
 * User: jason
 * Date: 2012-11-02
 */
@Component("availRequestMonitor")
public class AvailRequestMonitorImpl implements AvailRequestMonitor {
    private AtomicLong totalCount = new AtomicLong(0);
    private AtomicLong realCheckCount = new AtomicLong(0);
    private AtomicLong noAllotmentCount = new AtomicLong(0);
    private AtomicLong queryCacheCount = new AtomicLong(0);
    private AtomicLong occupancyRestrictedCount = new AtomicLong(0);
    private AtomicLong rateHitCount = new AtomicLong(0);
    private AtomicLong roomStayFilteredCount = new AtomicLong(0);

    @Override
    public AtomicLong getTotalCount() {
        return totalCount;
    }

    @Override
    public AtomicLong getRealCheckCount() {
        return realCheckCount;
    }

    @Override
    public AtomicLong getNoAllotmentCount() {
        return noAllotmentCount;
    }

    @Override
    public AtomicLong getQueryCacheCount() {
        return queryCacheCount;
    }

    @Override
    public AtomicLong getOccupancyRestrictedCount() {
        return occupancyRestrictedCount;
    }

    @Override
    public AtomicLong getRateHitCount() {
        return rateHitCount;
    }

    @Override
    public AtomicLong getRoomStayFilteredCount() {
        return roomStayFilteredCount;
    }
}
